<?php
    require_once "bootstrap.php";
?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>ПСГ 3 Лаба</title>
  <link type="text/css" rel="stylesheet" href="css/style.css" />
  <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
  <script type="text/javascript" src="js/base.js"></script>
  <script type="text/javascript" src="js/handler.js"></script>
  <script type="text/javascript" src="js/classes/EventDispatcher.class.js"></script>
  <script type="text/javascript" src="js/classes/UserData.class.js"></script>
  <script type="text/javascript" src="js/classes/UserDataListModel.class.js"></script>
  <script type="text/javascript" src="js/classes/UserDataListView.class.js"></script>
  <script type="text/javascript" src="js/classes/InputForm.class.js"></script>
  <script type="text/javascript" src="js/jquery.ui.widget.js"></script>
  <script type="text/javascript" src="js/jquery.iframe-transport.js"></script>
  <script type="text/javascript" src="js/jquery.fileupload.js"></script>
  <script type="text/javascript" src="js/script.js"></script>
</head>
<body id="body" class="normal">
  <input type="file" name="shit" id="fileupload" />
  <h1>ПСГ Лабораторная работа №3. Шадрин Сергей, ПС-42</h1>
  <input id="switchStylesButton" type="button" value="Включить стиль для слабовидящих" />
  <form id="mainForm" action="/manage_database.php" method="get">
    <div class="form_row">
      <input id="nameField" type="text" name="name" value="" placeholder="Введите, пожалуйста, ваше имя" />
    </div>
    <div class="form_row">
      <select id="sexField" name="sex">
        <option value="<?= Sex::MALE ?>">Мужской</option>
        <option value="<?= Sex::FEMALE ?>">Женский</option>
      </select>
    </div>
    <div class="form_row">
      <label for="notifyField">Уведомить о получении данных</label>
      <input id="notifyField" type="checkbox" name="notify" />
    </div>
    <div class="form_row">
      <textarea id="commentField" name="comment" placeholder="Ваш комментарий"></textarea>
    </div>
    <input type="submit" name="send" value="Отправить" />
  </form>
  <div id="pleloaderBlock">
    Связь с сервером <img src="images/preloader.gif" alt="" />
  </div>
  <div class="resultsBlock">
    <h3>Последние результаты отправки формы</h3>
    <table>
      <thead>
        <tr>
          <th>Имя</th>
          <th>Пол</th>
          <th>Уведомить</th>
          <th>Комментарий</th>
          <th>Удалить</th>
        </tr>
      </thead>
      <tbody id="userInfoContents">
      </tbody>
    </table>
  </div>
</body>
</html>